<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>用户信息</title>
	<meta name="keywords" content="" />
  <meta name="description" content="" />
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <link href="/food/Public/log/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  <link href="/food/Public/log/css/bootstrap.min.css" rel="stylesheet" type="text/css">
  <link href="/food/Public/log/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
  <link href="/food/Public/log/css/templatemo_style.css" rel="stylesheet" type="text/css"> 

<link href="/food/Public/mb1/css/bootstrap.css" rel="stylesheet">
<link href="/food/Public/mb1/css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Furnished Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

<script src="/food/Public/mb1/js/jquery.min.js"> </script>
           <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
  <!-- js -->
     <script src="/food/Public/mb1/js/bootstrap.js"></script>
  <!-- js -->
    <script type="text/javascript" src="/food/Public/mb1/js/move-top.js"></script>
<script type="text/javascript" src="/food/Public/mb1/js/easing.js"></script>
<!--/script-->
<!-- <script>
          function all_checked() {
            var all_check = document.getElementById("allCheck");
              var check=document.getElementsByName("Check[]");
                if (all_check.checked) {
                    for(j=0;j<check.length;j++){
                        check[j].checked=1;
                    }
                } else {
                    for(j=0;j<check.length;j++){
                        check[j].checked=0;
                    }
                }
             }
             </script> -->
<script type="text/javascript">
      jQuery(document).ready(function($) {
        $(".scroll").click(function(event){   
          event.preventDefault();
          $('html,body').animate({scrollTop:$(this.hash).offset().top},900);
        });
      });
</script>
</head>
<div class="header">
<div class="header-top">
    <div class="container">
        
      <form class="navbar-form navbar-right wow fadeInRight animated" data-wow-delay=".5s" style="visibility: visible; -webkit-animation-delay: .5s;">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Search">
          <button type="submit" class="btn btn-default" aria-label="Left Align">
            <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
          </button>
          
        </div>
        
      </form> 
    </div>  
    </div>
    <div class="clearfix"> </div>
  </div>



<div class="header-nav">
  <div class="container">
    <div class="logo">
      <a href="<?php echo U('Index/index');?>"><img src="/food/Public/mb1/images/logo.png" /></a>
    </div>
    <div class="navigation">
      <nav class="navbar navbar-default">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"> </span>
            <span class="icon-bar"> </span>
            <span class="icon-bar"> </span>
            </button>
          </div>
          <div class="collapse navbar-collapse nav-wil" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
            <li class="active"><a href="<?php echo U('Index/index');?>">首页 <span class="sr-only">(current)</span></a></li>
            <!-- <li><a href="about.html">About</a></li>
            <li><a href="services.html">Services</a></li> -->
						<li><a href="<?php echo U('Meishis/meishis');?>">发表美食</a></li>
            <li><a href="<?php echo U('Meishis/fenxiang');?>">用户分享</a></li>
             <li><a href="<?php echo U('Users/userInfo');?>">个人信息</a></li>
						<li><a href="<?php echo U('Users/login');?>">登录</a></li>
						<li><a href="<?php echo U('Users/reg');?>">注册</a></li>

            </ul>
        <div class="clearfix"> </div>
      </div><!-- /.navbar-collapse -->
    </nav>
  </div>
  </div>
  </div>
  <div class="clearfix"> </div>
</div>
<body>
<!-- 
<div id="boximg" style="margin-left: 20%"  ><img src="/food/Public/Uploads/photo/<?php echo ($list["photo"]); ?>" width="150" ></div> -->

<div class="blog">
    <div class="container">
      <div class="blog-head heading">
        <h3>列表</h3>
      </div>  
      <div class="blog-top">
        
         
          <div class="blog-main-one">
            <div class="blog-one">

              <div class="col-md-5 blog-one-left"  > 

                <table name="meishis" id="vo" > 
                <table>
                <a href="#"><img src="/food/Public/Uploads/photo/<?php echo ($list["photo"]); ?>"
                height="200" alt="" /></a>
                  </table>
                </div>



                  <div class="col-md-5.blog-one-right">

              <!-- <div style="margin-left: -1px" class="col-md-5  col-xs-12 col-sm-6 col-sm-offset-3 col-md-offset-4 col-xs-offset-2" >
               -->
              <table id="table-1" class="table table-condensed table-striped table-bordered dataTable" >
                            <thead>
                            <tr>
                                <th>昵称</th><td><?php echo ($list["aliasname"]); ?></td>
                            </tr>
                                                        <tr>
                                <th>联系电话</th><td><?php echo ($list["telephone"]); ?></td>                           
                            </tr>
                                                        <tr>
                           
                                <th>电子邮箱</th><td><?php echo ($list["email"]); ?></td>
                            </tr>
                            </thead>
                        </table>

<h2 align="center" >
<button id="span1" style="background: #FFF" class="btn btn-xs btn-info-outline"><a  href="<?php echo U('Users/editUser');?>"> 个人信息修改</a></button>

</h2>
              </div>
</div>
</div>
</div>
</div>
</div>
</div>


<div class="col-md-10  col-xs-12 col-sm-6 col-sm-offset-3 col-md-offset-1 col-xs-offset-2 " >
  <div class="widget-content padded" style="margin-top: 5%">         
            <table  class="table  table-responsive">
            <!-- <caption style="font-family: SimHei;font-size: large">我的招领</caption> -->
                
                    <h3 align="center">我发布的美食</h3>
                <tr style="font-size:20px">
                    <th width="10%">美食图片</th>
                    <th width="10%">美食名称</th>
                    <th width="10%">描述</th>
                    
                    <th width="10%">发布时间</th>             
                </tr>
 <tbody id="lost_table">
   <?php if(is_array($qrcodeList)): $i = 0; $__LIST__ = $qrcodeList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr style="font-size:20px">
                    <td><img src="/food/Public/Uploads/meishisphoto/<?php echo ($vo["picture"]); ?>" width="60" ></td>
                         <td><p><?php echo ($vo["meishis_name"]); ?></p></td>
                           <td><p><?php echo ($vo["desc"]); ?></p></td> 
                            <td><p><?php echo ($vo["createtime"]); ?></p></td> 
                                        
                    </tr><?php endforeach; endif; else: echo "" ;endif; ?>
   </tbody>
 </table>

<h3 align="center">
 <button  id="span2" class="btn btn-xs btn-default-outline"><span id="1_spanFirst">第一页</span> </button>
 <button id="span2" class="btn btn-xs btn-default-outline"><span id="1_spanPre">上一页</span> </button> 
 <button id="span2" class="btn btn-xs btn-default-outline"><span id="1_spanNext">下一页</span> </button> 
 <button id="span2" class="btn btn-xs btn-default-outline"><span id="1_spanLast">最后一页</span> </button>
 <span id="span2"> 第</span><span id="1_spanPageNum"></span>页/共<span id="1_spanTotalPage"></span>页
</h3>

  </div>
</div>



<script>
     var theTable_1 = document.getElementById("lost_table");
     var totalPage_1 = document.getElementById("1_spanTotalPage");
     var pageNum_1 = document.getElementById("1_spanPageNum");


     var spanPre_1 = document.getElementById("1_spanPre");
     var spanNext_1 = document.getElementById("1_spanNext");
     var spanFirst_1 = document.getElementById("1_spanFirst");
     var spanLast_1 = document.getElementById("1_spanLast");


     var numberRowsInTable_1 = theTable_1.rows.length;
     var pageSize_1 = 1;
     var page_1 = 1;


     //下一页
     function next_1() {


         hideTable_1();


         currentRow_1 = pageSize_1 * page_1;
         maxRow_1 = currentRow_1 + pageSize_1;
         if (maxRow_1 > numberRowsInTable_1) maxRow_1 = numberRowsInTable_1;
         for (var i = currentRow_1; i < maxRow_1; i++) {
             theTable_1.rows[i].style.display = '';
         }
         page_1++;


         if (maxRow_1 == numberRowsInTable_1) { nextText_1(); lastText_1(); }
         showPage_1();
         preLink_1();
         firstLink_1();
     }


     //上一页
     function pre_1() {


         hideTable_1();


         page_1--;


         currentRow_1 = pageSize_1 * page_1;
         maxRow_1 = currentRow_1 - pageSize_1;
         if (currentRow_1 > numberRowsInTable_1) currentRow_1 = numberRowsInTable_1;
         for (var i = maxRow_1; i < currentRow_1; i++) {
             theTable_1.rows[i].style.display = '';
         }




         if (maxRow_1 == 0) { preText_1(); firstText_1(); }
         showPage_1();
         nextLink_1();
         lastLink_1();
     }


     //第一页
     function first_1() {
         hideTable_1();
         page_1 = 1;
         for (var i = 0; i < pageSize_1; i++) {
             theTable_1.rows[i].style.display = '';
         }
         showPage_1();


         preText_1();
         nextLink_1();
         lastLink_1();
     }


     //最后一页
     function last_1() {
         hideTable_1();
         page_1 = pageCount_1();
         currentRow_1 = pageSize_1 * (page_1 - 1);
         for (var i = currentRow_1; i < numberRowsInTable_1; i++) {
             theTable_1.rows[i].style.display = '';
         }
         showPage_1();


         preLink_1();
         nextText_1();
         firstLink_1();
     }


     function hideTable_1() {
         for (var i = 0; i < numberRowsInTable_1; i++) {
             theTable_1.rows[i].style.display = 'none';
         }
     }


     function showPage_1() {
         pageNum_1.innerHTML = page_1;
     }


     //总共页数
     function pageCount_1() {
         var count_1 = 0;
         if (numberRowsInTable_1 % pageSize_1 != 0) count_1 = 1;
         return parseInt(numberRowsInTable_1 / pageSize_1) + count_1;
     }


     //显示链接
     function preLink_1() { spanPre_1.innerHTML = "<a href='javascript:pre_1();'>上一页</a>"; }
     function preText_1() { spanPre_1.innerHTML = "上一页"; }


     function nextLink_1() { spanNext_1.innerHTML = "<a href='javascript:next_1();'>下一页</a>"; }
     function nextText_1() { spanNext_1.innerHTML = "下一页"; }


     function firstLink_1() { spanFirst_1.innerHTML = "<a href='javascript:first_1();'>第一页</a>"; }
     function firstText_1() { spanFirst_1.innerHTML = "第一页"; }


     function lastLink_1() { spanLast_1.innerHTML = "<a href='javascript:last_1();'>最后一页</a>"; }
     function lastText_1() { spanLast_1.innerHTML = "最后一页"; }


     //隐藏表格
     function hide_1() {
         for (var i = pageSize_1; i < numberRowsInTable_1; i++) {
             theTable_1.rows[i].style.display = 'none';
         }


         totalPage_1.innerHTML = pageCount_1();
         pageNum_1.innerHTML = '1';


         nextLink_1();
         lastLink_1();
     }


     hide_1();
</script>

</table> 


</body>
</html>